package diancan.JDK;

import java.lang.reflect.Proxy;

public class TakeawayJDKfactory {

    public static <T> T create(Object target){
        TakeawayJDK jdk = new TakeawayJDK(target);
        return (T) Proxy.newProxyInstance(target.getClass().getClassLoader(),
                target.getClass().getInterfaces(),jdk);
    }
}
